export default {
	namespaced:true,
	state:()=>{
		return{
			address:JSON.parse(uni.getStorageSync('address')|| '{}') 
		}
	},
	mutations:{
		updateAddress(state,address){
			state.address=address;
			this.commit('user_m/saveAddressToStorage')
		},
		saveAddressToStorage(state){
			uni.setStorageSync('address',JSON.stringify(state.address))
		}
	},
	actions:{},
	getters:{}
}